import request from '@/utils/request'

// 查询试听课记录列表
export function listAudition(query) {
  return request({
    url: '/school/audition/list',
    method: 'get',
    params: query
  })
}

// 查询试听课记录详细
export function getAudition(id) {
  return request({
    url: '/school/audition/' + id,
    method: 'get'
  })
}

// 新增试听课记录
export function addAudition(data) {
  return request({
    url: '/school/audition',
    method: 'post',
    data: data
  })
}

// 修改试听课记录
export function updateAudition(data) {
  return request({
    url: '/school/audition',
    method: 'put',
    data: data
  })
}

// 删除试听课记录
export function delAudition(id) {
  return request({
    url: '/school/audition/' + id,
    method: 'delete'
  })
}

// 导出试听课记录
export function exportAudition(query) {
  return request({
    url: '/school/audition/export',
    method: 'get',
    params: query
  })
}